import axios from 'src/util/axios'
// 创建学生
const studentCreat = params => axios('post', '/school-student/create', params)

// 更新学生
const studentUpdate = params => axios('post', '/school-student/update', params)

// 学生详情
const getStudentDetail = params => axios('get', '/school-student/get', params)

// 删除学生
const getStudentDel = params => axios('post', '/school-student/del', params)

// 退学
const dropOutStudent = params => axios('post', '/school-student/drop-out', params)

// 班级列表
const getClassLists = params => axios('get', '/school-class/find-class-list-by-grade', params)

// 学生列表
const getStudentsList = params => axios('post', '/school-student/find', params)

// 录取、取消录取
const getStudentEnroll = params => axios('post', '/school-student/enroll', params)

// 获取所有班级
const getClassList = params => axios('get', '/school-class/find-all-grade-class-list', params)

// 年级列表
const getGradeList = params => axios('get', '/school-class/find-grade-list', params)

// 导出数据
const exportStudent = params => axios('get', '/school-student/export', params)

// 调班
const changeStudent = params => axios('post', '/school-student/change-class', params)

// 获取学校及签约信息
const getBasicInfo = params => axios('get', '/school/get-school-and-csi', params)

// 获取学生缴费记录
const getPaymentInfo = params => axios('post', '/school-order/get-drop-out-payment', params)

// 复学
const returnSchool = params => axios('post', '/school-student/return-school', params)

export {
  studentCreat,
  studentUpdate,
  getStudentDetail,
  getStudentDel,
  dropOutStudent,
  getClassLists,
  getStudentsList,
  getStudentEnroll,
  getClassList,
  getGradeList,
  exportStudent,
  changeStudent,
  getBasicInfo,
  getPaymentInfo,
  returnSchool
}
